#pragma once
#ifndef __VMESHENTITY_H__
#define __VMESHENTITY_H__

#include "VSceneEntity.h"

// Material And LOD
class VMeshEntity : public VSceneEntity
{
	VDECL_CLASS(VMeshEntity);
public:
	VMeshEntity(void);
	virtual ~VMeshEntity(void);


protected:
	virtual void OnControllerActived(VAnimationController* AnimationController);
	virtual void OnControllerDeactived(VAnimationController* AnimationController);

	virtual void Update(float DeltaTime);
	virtual BOOL Load(const VXMLElement* Element);
	virtual void Save(VXMLElement* Element);
protected:
	VMaterialInstance* m_Material;
	int m_NumActiveController;
};

#endif 

